﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="select.aspx.cs" Inherits="drug_category" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            color: #00FFFF;
            font-size: x-large;
        }
        .auto-style2 {
            color: #0099FF;
            font-size: x-large;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <strong><span class="auto-style1">&nbsp;</span><span class="auto-style2">请选择类别</span></strong>：&nbsp;&nbsp;
        <asp:DropDownList ID="drpselect" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpselect_SelectedIndexChanged" Font-Size="Large" Height="106px" style="font-weight: 700; margin-top: 0px; margin-left: 0px;">
            <asp:ListItem>消化类</asp:ListItem>
            <asp:ListItem>抗风湿类</asp:ListItem>
            <asp:ListItem>抗生素类</asp:ListItem>
            <asp:ListItem>感冒类</asp:ListItem>
            <asp:ListItem>糖尿病类</asp:ListItem>
        </asp:DropDownList>
&nbsp;&nbsp;
        <br />
        <br />
        <asp:GridView ID="gvProduct" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="770px" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" Height="409px" DataKeyNames="MedID" DataSourceID="LinqDataSource1" OnRowDataBound="gvProduct_RowDataBound" OnSelectedIndexChanged="gvProduct_SelectedIndexChanged">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="MedID" HeaderText="药品ID" ReadOnly="True" SortExpression="MedID" />
                <asp:BoundField DataField="MedName" HeaderText="药品名称" SortExpression="MedName" />
                <asp:BoundField DataField="MedClass" HeaderText="药品类别" SortExpression="MedClass" />
                <asp:BoundField DataField="MedPrice" HeaderText="药品价格" SortExpression="MedPrice" />
                <asp:BoundField DataField="MedPertime" HeaderText="生产日期" SortExpression="MedPertime" />
                <asp:BoundField DataField="MedSpec" HeaderText="药品规格" SortExpression="MedSpec" />
                <asp:BoundField DataField="Description" HeaderText="说明" SortExpression="Description" />
                <asp:BoundField DataField="Store" HeaderText="库存" SortExpression="Store" />
                <asp:ImageField DataImageUrlField="Img" DataImageUrlFormatString="~\imagine\{0}" HeaderText="图片">
                    <ControlStyle Height="25px" Width="35px" />
                </asp:ImageField>
                <asp:CommandField ShowDeleteButton="True" HeaderText="删除" />
                <asp:CommandField SelectText="加入购物车" ShowSelectButton="True" />
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
        </asp:GridView>
        <asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
        </asp:DropDownList>
        页<br />
        <br />
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="DataClassesDataContext" EntityTypeName="" TableName="medical" EnableDelete="True">
        </asp:LinqDataSource>
&nbsp;<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </form>
</body>
</html>
